<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>接送机管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
			return false;
		}
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/rentproduct/tRentgroup/discountlist">接送机列表</a></li>
		<c:if test="${empty list}">
		<shiro:hasPermission name="rentproduct:tRentgroup:edit">
			<li>
				<a href="${ctx}/rentproduct/tRentgroup/discountform">接送机包车添加</a>	
			</li>
		</shiro:hasPermission>	
		</c:if>	
	</ul>
	<sys:message content="${message}"/>
		<form:form id="searchForm"  class="breadcrumb form-search">
		<div class="control-group">
			 <a href="http://www.xiakeyueche.com/接送机报价模板.docx" target="_blank">接送机报价模板下载</a>
		</div>
	</form:form>
	<table class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>归属公司</th>
				<th>价格系数</th>
				<th>距离标准</th>
				<shiro:hasPermission name="rentproduct:tRentgroup:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${list}" var="list">
			<tr>
				<td>${list['officename']}</td>
				<td>${list['factor'] }</td>
				<td><c:if test="${ list['distancelevel'] eq 1 }">50公里以内</c:if>
				    <c:if test="${ list['distancelevel'] eq 2 }">50-150公里</c:if>
				    <c:if test="${ list['distancelevel'] eq 3 }">150-275公里</c:if>
				    <c:if test="${ list['distancelevel'] eq 4 }">275-500公里</c:if>
				    <c:if test="${ list['distancelevel'] eq 5 }">500公里以上</c:if>
				</td>
					<td>					
						<shiro:hasPermission name="rentproduct:tRentgroup:edit">						
								<a href="${ctx}/rentproduct/tRentgroup/discountedit?discountid=${ list['discountid']}">修改</a>					
						</shiro:hasPermission>
					</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
</body>
</html>